package com.qfedu.edu.result;

public enum ResponseCode {
    SQL_ERROR(500, "sql错误"),
    SYS_ERROR(500, "系统错误"),
    SUCCESS(200, "成功"),
    FAIL(500, "失败"),
    PARAMETER_EXCEPTION(400, "参数错误"),
    ;
    Integer code;
    String message;

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
